Generate TV Scripts
All Required Files and Tests
| Criteria | Meet Specification |
|---|---|
|
All project files are included in the submission |
The project submission contains the project notebook, called “dlnd_tv_script_generation.ipynb”. |
|
All unit tests in the project have passed |
All the unit tests in project have passed. |
Pre-processing Data
| Criteria | Meet Specification |
|---|---|
|
The function |
The function
The function |
|
A special token dictionary is created |
The function |
Batching Data
| Criteria | Meet Specification |
|---|---|
|
Data is broken into sequences |
The function |
|
Data is created using TensorDataset |
In the function |
|
Data is batched correctly. |
Finally, |
Build the RNN
| Criteria | Meet Specification |
|---|---|
|
An RNN class has been defined |
The RNN class has complete |
|
The RNN includes at least one LSTM (or GRU) and fully-connected layer. |
The RNN must include an LSTM or GRU and at least one fully-connected layer. The LSTM/GRU should be correctly initialized, where relevant. |
RNN Training
| Criteria | Meet Specification |
|---|---|
|
Reasonable hyperparameters are selected for training |
|
|
The model shows improvement during training |
The printed loss should decrease during training. The loss should reach a value lower than 3.5. |
|
Question about hyperparameter choices is answered. |
There is a provided answer that justifies choices about model size, sequence length, and other parameters. |
Generate TV Script
| Criteria | Meet Specification |
|---|---|
|
The generator code generates a script |
The generated script can vary in length, and should look structurally similar to the TV script in the dataset. It doesn’t have to be grammatically correct or make sense. |
Tips to make your project standout:
- Use validation data to choose the best model
- Initialize your model weights, especially the weights of the embedded layer to encourage model convergence
- Use topk sampling to generate new words
- Check out the "Advanced projects" section in the project overview to take this work even further!